<?php
/**
 * Created by PhpStorm.
 * Script Name: MpTemplatemsg.php
 * Create: 2023/1/11 14:31
 * Description:
 * Author: fudaoji<fdj@kuryun.cn>
 */

namespace plugin\wechat\app\validate;

use app\common\validate\Common;

class MpTemplatemsg extends Common
{

    public function __construct()
    {
        parent::__construct();
    }

    protected $rule = [
        'title'  =>  'require|max:50',
        'url'  => 'url',
        'speed' => 'min:1|max:20'
    ];

    //错误消息
    protected $message  =   [
        'title.require' => '标题必须',
        'url'     => '跳转链接非法',
        'speed' => '推送速度在0-20之间'
    ];
}